MLOCK
Section: System Calls (2)
Updated: November 19, 1989
Index
Return to Main Contents
NAME
mlock, munlock - lock and unlock pages in memory.
SYNOPSIS
int mlock(addr, len)
int munlock(addr, len)
caddr_t addr;
int len;
DESCRIPTION
Mlock
takes an address range and locks the associated pages into physical
memory.
Munlock
takes an address range and unlocks the associated pages so they
can be paged out.
RETURN VALUE
Mlock
and
Munlock
return 0 if they are successful. Otherwise they return -1 and
an error code is returned in
errno.
BUGS
These functions don't have much error checking. Pages that are
locked down and not unlocked may remain unusable after the process
terminates.
SEE ALSO
mmap(2)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- BUGS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 04:51:42 GMT, January 31, 2023